<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: stone
  Date: 2019-08-17
  Time: 15:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


            <div class="row">
    <div class="col-sm-12">
        <div class="col-sm-offset-7" style="font-size: 14px">
            <ul class="logo-header">
                <li><a href="front/shopping-cart.jsp"><i class="fa fa-shopping-cart"></i><span style="margin-left: 5px;">购物车</span></a></li>
                <li><a href="#"><span class="glyphicon glyphicon-list-alt"></span><span style="margin-left: 5px">我的订单</span></a></li>
                <c:choose>
                    <c:when test="${loginUser == null}">
                        <li>
                            <a href="toLogin.do" class="btn btn-success btn-xs">登录</a>
                        </li>
                        <li>
                            <a href="toRegister.do" class="btn btn-info btn-xs">注册</a>
                        </li>
                    </c:when>
                    <c:otherwise>
                        <li>
                            <img src="image/${loginUser.header}" alt="" class="img-circle" width="20" height="20">&nbsp;${loginUser.firstName}${loginUser.lastName},你好
                        </li>
                    </c:otherwise>
                </c:choose>
            </ul>
        </div>
        <div class="row">
            <div class="col-sm-4" style="margin: 0px; padding: 0px">
                <img src="image/logo.jpg" alt="" class="img-responsive">
            </div>
            <div class="col-sm-8">
                <img src="image/quality2.png" alt="" class="img-responsive">
            </div>
        </div>
    </div>
</div>

            <div class="row">
    <div class="col-md-12">

        <nav class="navbar navbar-default" style="margin-top: 15px">
            <div class="container-fluid" style="height: 25px">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="toIndex.do">首页</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li><a href="front/saleprod/showType.do?type=家用电器">家用电器<span class="sr-only">(current)</span></a></li>
                        <li><a href="front/saleprod/showType.do?type=服饰箱包">服饰箱包</a></li>
                        <li><a href="front/saleprod/showType.do?type=手机">手&nbsp;&nbsp;&nbsp;机</a></li>
                        <li><a href="front/saleprod/showType.do?type=数码">数&nbsp;&nbsp;&nbsp;码</a></li>
                        <li><a href="#">帮助中心</a></li>
                        <li><a href="#">免费开店</a></li>
                        <li><a href="#">全球咨询</a></li>
                    </ul>
                    <form class="navbar-form navbar-right" action="front/saleprod/search.do">
                        <div class="form-group ">
                            <input type="text" class="form-control" name="searchName" placeholder="请输入关键字">
                        </div>
                        <button type="submit" class="btn btn-default">搜索</button>
                    </form>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </nav>
    </div>
</div>
